# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-simframe
_pkgorig=simframe
pkgver=1.0.2
pkgrel=1
pkgdesc="Python framework for setting up and running scientific simulations"
url="https://github.com/stammler/simframe/"
arch="noarch !riscv64 !s390x !armhf !armv7 !x86" #py3-matplotlib #py3-dill
license="BSD"
depends="python3 py3-dill py3-h5py py3-matplotlib py3-scipy py3-numpy"
checkdepends="python3-dev py3-pytest"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/stammler/$_pkgorig/archive/$pkgver/$_pkgorig-$pkgver.tar.gz"
builddir="$srcdir/$_pkgorig-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"

	rm -rf "$pkgdir"/usr/lib/python3*/site-packages/tests
}

sha512sums="
3ca6e63aa212999a0f139ceb0ae470ba37fed148523e322229400a4aeb18aca7eb64759151c076097b976ff0b01f2598251fbf15d90f6b6957f4198a7c9e2fee  py3-simframe-1.0.2.tar.gz
"
